<template>
    <router-view></router-view>
</template>

<script>
    export default {
        name: "ez-layout-root",
        created() {
            if (this.$route.path === "/"){
                this.$router.push(
                    this.$ezstore.auth.getIsLogin()?
                        "/v1/welcome":"/login"
                )
            }
        }
    }
</script>

<style scoped>

</style>